package com.cr.mrapp.dao;

import com.cr.mrapp.entity.Order;
import com.cr.mrapp.entity.OrderDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDao {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Object> selectByPage(int i, int limit);

    int selectCount();

    List<OrderDetail> findMyOrder(String customerName);
}